﻿using System;


namespace IDEAMS.model.spectrum
{
    public class ChParamViewModel : ViewModelBase
    {
        private Nullable<double> m_refThreshold; // 相对门限
        public Nullable<double> refThreshold
        {
            get { return m_refThreshold; }
            set
            {
                if(value != m_refThreshold)
                {
                    m_refThreshold = value;
                    NotifyPropertyChanged();
                }
            }
        }

        private Nullable<double> m_threshold; // 绝对门限
        public Nullable<double> threshold
        {
            get { return m_threshold; }
            set
            {
                if (value != m_threshold)
                {
                    m_threshold = value;
                    NotifyPropertyChanged();
                }
            }
        }

        private Nullable<double> m_widthLevel;  // 宽度衰减
        public Nullable<double> widthLevel
        {
            get { return m_widthLevel; }
            set
            {
                if (value != m_widthLevel)
                {
                    m_widthLevel = value;
                    NotifyPropertyChanged();
                }
            }
        }

        private Nullable<double> m_width;  // 宽度
        public Nullable<double> width
        {
            get { return m_width; }
            set
            {
                if (value != m_width)
                {
                    m_width = value;
                    NotifyPropertyChanged();
                }
            }
        }
    }
}
